import request from '@/utils/request'
/**
 * 获取趋势图数据
 * @function: 获取趋势图数据
 * @description: 获取趋势图数据
 * @author : allen
 * @returns {/event/getEventList} 返回数据
 * @version: 1.0.0
 * @example:
 */
export function getEventList(query) {
  return request({
    url: '/event/getEventList',
    method: 'get',
    params: query
  })
}


/**
 * 添加趋势图数据
 * @function: 添加趋势图数据
 * @description: 添加趋势图数据
 * @author : allen
 * @param {Object} params - 添加的数据对象
 * @returns {/event/addEventList} 返回数据
 * @version: 1.0.0
 * @example:
 */
export function addEventList(params) {
  return request({
    url: '/event/addEventList',
    method: 'get',
    params
  })
}

